package com.project_doctor.controller;

import com.project_doctor.service.StatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("Status")
public class StatusController {
    @Autowired
    private StatusService statusService;

    @GetMapping("/getAllStatus")
    public ResponseEntity<?> getAllStatus() {
        return ResponseEntity.ok(statusService.list());
    }
}
